
const mongoose = require('mongoose');
require("../model/typesModel");
const testsSchema = new mongoose.Schema({
    date: String,
    exercisesId: Array,
    time:String,
    title: String,
    typeId:  {
        type: mongoose.SchemaTypes.ObjectId,
        ref:'typesModel'
}
});
mongoose.model('testsModel',  testsSchema, 'tests');

